<?php defined("MAIN_DIR") or die("No direct access");

$poll_id = UV::readInt($route->getPath(5));
$db->sendQuery("delete from `user_answers` where `poll_id` = '$poll_id'");
$db->sendQuery("delete from `answers` where `poll_id` = '$poll_id'");
$db->sendQuery("delete from `poll` where `poll_id` = '$poll_id' limit 1");

to("/admin/site/polls/");

?>